<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="/static/layui/layui.js" ></script>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <script type="text/javascript" src="/static/js/jquery.js" ></script>
    <style>
        /* 新增按钮悬停效果 */
        .layui-btn {
            transition: all 0.3s ease;
        }

        .layui-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .layui-btn-primary:hover {
            border-color: #5FB878;
            color: #5FB878;
        }
    </style>
</head>
<body>

<div class="layui-card">
    <div class="layui-card-header">信息修羽间 | 个人登录信息</div>
    <div class="layui-card-body">
        <form class="layui-form" action="{{ url_for("user.update") }}" method="post">
            <input type="hidden" name="id" value="{{ session.user_id }}">
            {% if msg %}
                <div class="layui-form-item">
                    <label style="color: red" class="layui-form-label">{{ msg }}</label>
                </div>
            {% endif %}
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <input type="hidden" name="id">
                    <input type="text" name="username" required value="{{ user.username }}"  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <input type="hidden" name="id">
                    <input type="text" step="any" name="password" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="dataForm">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>


</body>
</html>